/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.beta.season2011.processing;

import com.team1160.beta.season2011.output.OutputCommand;
import com.team1160.beta.season2011.output.drivetrain.DriveTrainCommand;
import com.team1160.beta.season2011.output.kicker.KickerCommand;

/**
 * This is passed from a DecisionEngine to a Output Manager.
 * @author CJ
 */
public class RobotCommand extends OutputCommand{

    public RobotCommand(boolean KICKER,
                        boolean LATCH,
                        double yAxis,
                        double zAxis){
        this.data[DriveTrainCommand.JOYSTICK_Y_AXIS]=yAxis;
        this.data[DriveTrainCommand.JOYSTICK_Z_AXIS]=zAxis;
        this.data[KickerCommand.KICKER]=(KICKER)?1:0;
        this.data[KickerCommand.LATCH]=(LATCH)?1:0;
    }

    public double[] getData() {
        return this.data;
    }

    public void setData(double[] command) {
        this.data=command;
    }

}
